package hanshunping.project.chatRoom.chatClient.client.service;

import java.util.HashMap;

/**
 * create by: 蔡博
 * description: TODO
 * create time: 2022/11/16 22:03
 * 管理连接到服务器端的线程的类
  * @Param: null
 * @return
 */
public class ManageConnectThread {
    //key id     value 线程
    private static HashMap<String,ConnectThread> hm = new HashMap<>();
    public static void addThread(String uid,ConnectThread ct){
        hm.put(uid,ct);
    }
    public static ConnectThread getThread(String uid){
        return hm.get(uid);
    }
}
